﻿using System;

namespace diantou.web
{
    /// <summary>
    /// 用户全局视图
    /// </summary>
    /// <typeparam name="viewType"></typeparam>
    abstract class currentUserView<viewType> : view<viewType>
        where viewType : currentUserView<viewType>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        protected override bool loadView()
        {
            if (base.loadView())
            {
                if (currentUser != null) return true;
                AjaxResponse(new fastCSharp.code.cSharp.webView.errorPath { ErrorPath = diantou.dataModel.path.pub.Index });
            }
            return false;
        }
    }
}
